<!-- application/views/script/photo/addalbum.phtml-->
<!-- jquery validagte -->
<script src="/jquery-validate/jquery.validate.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/jquery-validate/demo/css/screen.css" />

<script type="text/javascript">
$.validator.setDefaults({
	//submitHandler: function() { alert("submitted!"); }
});

$().ready(function() {
	
	// validate signup form on keyup and submit
	$("#albumForm").validate({
		rules: {
			name: {
				required: true,
				rangelength: [1, 50]
			},
			desc: {
				required: false,
				rangelength: [0, 100]
			},
		}
	});
});

</script>
<?php 
$addalbumform = new Application_Form_AddAlbum(array(
            'action' => '/photo/savealbum',
            'method' => 'post'            
));

echo $addalbumform; 
?>

